{% extends "base.html" %} {% block title %}My Profile - Quick Care Connect{% endblock %} {% block extra_css %} {% endblock %} {% block content %}
{% if patient.user.profile_picture %} {{ patient.user.name }} {% else %}
{{ patient.user.name[0].upper() }}
{% endif %}
{{ patient.user.name }} {% if profile_incomplete %} {% else %} {% endif %}
{{ patient.user.email }}
{% if stats %}
{{ stats.total_appointments }} Appointments
{{ stats.completed }} Completed
{{ stats.questions }} Questions
{{ stats.medical_history }} Records
{% endif %}
{% if profile_incomplete %}
Complete Your Profile

To access all features like booking appointments and posting questions, please complete the following required fields:

Complete Profile Now
{% endif %} {% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} {% for category, message in messages %} {% endfor %} {% endif %} {% endwith %}

Personal Information Edit Profile

Full Name {{ patient.user.name }}
Email {{ patient.user.email }}
Phone Number {% if patient.user.phone %}{{ patient.user.phone|format_phone }}{% else %}Not provided{% endif %}
CNIC {{ patient.user.cnic or 'Not provided'|safe }}
Date of Birth {% if patient.user.date_of_birth %} {{ patient.user.date_of_birth.strftime('%B %d, %Y') }} {% else %} Not provided {% endif %}
Gender {% if patient.user.gender %} {{ patient.user.gender|title }} {% else %} Not provided {% endif %}
Emergency Contact {% if patient.emergency_contact %} {{ patient.emergency_contact|format_phone }} {% if patient.emergency_relation %} ({{ patient.emergency_relation|title }}) {% endif %} {% else %} Not provided {% endif %}
Blood Group {% if patient.blood_group %} {{ patient.blood_group }} {% else %} Not provided {% endif %}
{% if patient.allergies or patient.medical_history %}

Medical Information

{% if patient.allergies %}
Allergies

{{ patient.allergies }}

{% endif %} {% if patient.medical_history %}
Medical History

{{ patient.medical_history }}

{% endif %}
{% endif %} {% if upcoming_appointments %}

Upcoming Appointments

View All
{% for appointment in upcoming_appointments[:3] %}
{{ appointment.doctor.user.name }}
{{ appointment.appointment_date.strftime('%B %d, %Y') }}
{{ appointment.appointment_time.strftime('%I:%M %p') }}
{{ appointment.appointment_type|title }}
{% endfor %}
{% endif %}
{% endblock %} {% block extra_js %} {% endblock %}